package com.xgry.bpm.api.base.reportparam.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("reportParam")
public class ReportParam extends Model<ReportParam> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "reportId", type = IdType.AUTO)
    private Integer reportId;

    @TableField("JDBCDriver")
    private String JDBCDriver;

    @TableField("JDBCPassword")
    private String JDBCPassword;

    @TableField("JDBCUrl")
    private String JDBCUrl;

    @TableField("JDBCUserName")
    private String JDBCUserName;

    @TableField("createDate")
    private LocalDateTime createDate;

    @TableField("dbName")
    private String dbName;

    @TableField("ipAddress")
    private String ipAddress;

    @TableField("reportName")
    private String reportName;

    private String sql;

    @TableField("updateDate")
    private LocalDateTime updateDate;

    @TableField("whereParam")
    private String whereParam;


    @Override
    protected Serializable pkVal() {
        return this.reportId;
    }

}
